// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './router/router'
import store from './store/'
import {routerMode} from './config/env'
import './config/rem'
import FastClick from 'fastclick'


if('addEventListener' in document){
  document.addEventListener('DOMContentLoaded',function () {
    FastClick.attach(document.body);
  },false)
}

Vue.use(VueRouter)
//生成路由实例
const router  = new VueRouter({
  routes,
  mode:routerMode,
  strict:process.env.NODE_ENV !=='production'
})

new Vue({
  router,
  store
}).$mount('#app')
